Skip to content

Skip unmatched addresses when parsing batch geocoding responses#26

Open
SAY-5 wants to merge 1 commit into
Geocodio:mainfrom
SAY-5:fix/batch-unmatched-indexerror
Open

Skip unmatched addresses when parsing batch geocoding responses#26
SAY-5 wants to merge 1 commit into
Geocodio:mainfrom
SAY-5:fix/batch-unmatched-indexerror

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jun 18, 2026

Copy link
Copy Markdown

Summary

Fixes #24 - batch geocoding raised IndexError when a query came back with no matches (e.g. an unparseable address). The API returns one entry per query and unmatched ones have an empty results list, but the parser indexed results[0] unconditionally. Entries with no results are now skipped so the rest of the batch still parses.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndexError on batches with invalid addresses

1 participant